import time


localtime =  (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
#str="启动时间 :"+localtime+"\n"
print ("本地时间为 :", type(localtime))